# --- 类对象 ---


class Student:
    pass


print("【类对象】id: {}, type: {}".format(id(Student), type(Student)))

# --- 类属性 ---


class Foo:
    version = "1.0"


print("【类属性】Foo.version: ", Foo.version)

# --- 类方法 ---


class Bar:
    @classmethod
    def version(cls):
        return "v1.0"


print("【类方法】Bar.version(): ", Bar.version())


# --- 静态方法 ---
class FooBar:
    @staticmethod
    def hello():
        print("【静态方法】FooBar.hello(): 你好")


FooBar.hello()
